package com.hopes.bizz.close.gis.vo;

import com.hopes.bizz.close.common.constant.enums.ParkCloseSysDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.admin.api.resolver.enums.SysDictEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 车道VO
 * @time 2024/2/23 9:34
 */
@Data
public class ClosedRoadVO implements Serializable {

    private static final long serialVersionUID = -3795477580185357489L;

    @Schema(description="标识")
    private Long id;

    @Schema(description="道路名称")
    private String name;

    @Schema(description = "道路类型")
    private String roadType;

    @Schema(description="专用车道")
    private String hazardFlag;

    @Schema(description="道路范围")
    private String roadScope;

    @Schema(description="允许通行")
    private String allowPass;

    public String getAllowPassStr() {
        return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.getAllowPass());
    }

    public String getHazardFlagStr() {
        return DictResolver.getItemLabelByValue(SysDictEnum.yes_no_type, this.getHazardFlag());
    }

    public String getRoadTypeStr() {
        return DictResolver.getItemLabelByValue(ParkCloseSysDictEnum.close_road_type, this.getRoadType());
    }

}
